<template>
      <el-carousel :interval="4000" height="320px">
        <el-carousel-item v-for="(img,index) in img" :key="index">
          <el-image :src="require('@/'+img.src)" fit="contain" style="width: 480px;height: 320px"></el-image>
        </el-carousel-item>
      </el-carousel>
</template>

<script>
export default {
  name: "Carousel",
  data() {
    return {
      img: [
        {
          src:'assets/apple/iphone13pro.jpeg'
        },
        {
          src:'assets/apple/iphone13pro.jpeg'
        },
        {
          src:'assets/apple/iphone13pro.jpeg'
        },
      ]
    }
  }
}
</script>

<style scoped>

</style>
